package com.itheima_03;

public class test_2 {
    public static void main(String[] args) {
        RandomNumC(new RandomNum() {
            @Override
            public int RandomNumMenth(int a, int b) {
                return a + b;
            }
        }) ;
    }
    public static void   RandomNumC(RandomNum randomNum){
        int i = randomNum.RandomNumMenth(10, 56);
        System.out.println( i);
    }
}
interface RandomNum {
    int RandomNumMenth(int a,int b);
}